from configs import app_config
from agent_app import AgentApp


def is_enabled() -> bool:
    return app_config.API_COMPRESSION_ENABLED


def init_app(app: AgentApp):
    from flask_compress import Compress  # type: ignore

    compress = Compress()
    compress.init_app(app)
